/***********************************************************************
 * Module:  Resource.java
 * Author:  wuxinyang
 * Purpose: Defines the Interface Resource
 ***********************************************************************/

package com.witframework.plugin.lucene.resource;


import com.witframework.plugin.lucene.IndexException;
import com.witframework.plugin.lucene.index.DocumentListener;
import com.witframework.plugin.lucene.index.ResourceProcessor;

/** 资源接口，系统根据
 *
 * @pdOid 27dce443-66e6-41fc-be12-cca2283a3902 */
public interface Resource {
   /** @param builder
    * @pdOid baa324cb-174d-4091-bb2f-c0f1b7758633 */
   int extractDocuments(ResourceProcessor holder) throws IndexException;
   /** @param l
    * @pdOid f9a0e7cb-8f41-44c7-8fa4-3a914d2a0458 */
   void addDocumentListener(DocumentListener l);
   /** @pdOid a2eb34f9-3100-47ad-9b22-92270fd6b9f8 */
   ResourceMetaData getMetaData(String resourceName);

}